<template>
  <div>
    <div class="mtitle">
      <p @click="back" class="left">取消</p>
      <p class="title">个性签名</p>
      <p class="right" @click="success">完成</p>
    </div>
    <textarea placeholder="请输入个性签名" v-model="autograph"></textarea>
  </div>
</template>

<script>
import { mapActions } from "vuex";

export default {
  data() {
    return {
      autograph: "",
    };
  },
  methods: {
    ...mapActions("li", ["upProfile"]),

    //按钮
    radioCheck(index) {
      this.radio = index;
    },
    //取消
    back() {
      this.$router.back();
    },
    //成功
    success() {
      this.upProfile({ autograph: this.autograph });
    },
  },
};
</script>

<style lang="scss" scoped>
textarea {
  width: 750px;
  height: 200px;
  margin-top: 76px;
}
.mtitle {
  display: flex;
  align-items: center;
  text-align: center;
  .left {
    font-size: 28px;
    margin-left: 60px;
  }
  .right {
    font-size: 28px;
    margin-right: 60px;
  }
  .title {
    flex: 1;
    margin: 24px 0 40px 0;
    font-size: 40px;
    font-weight: bold;
  }
}
</style>